package com.zhulanhua.blogs.controller.params;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
public class ArticleParams  implements Serializable {
    @NotBlank(message = "文章标题不能为空")
    private String articleTitle;//文章标题
    @NotBlank(message = "正文不能为空")
    private String text;//正文
    @NotBlank(message = "文章简介不能为空")
    private String simple;//文章简介
    @NotBlank(message = "关键字不能为空")
    private String searchKey;//搜索关键字
    @NotBlank(message = "文章封面不能为空")
    private String icon;//文章封面，需要图片的base64
    @NotEmpty(message = "分类名称不能为空")
    private String articleType;//分类名称
}
